﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdministracionUsuarios.aspx.cs" Inherits="BMSeguridad_AdministracionUsuarios"
    Title="AdministracionUsuarios" MasterPageFile="~/MasterPage.master" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
       
       <h1 style="text-align: left">
            &nbsp;&nbsp;&nbsp;Administraci&oacute;n de Usuarios</h1>
	<table align="center" class="tablaForm" width="550">
        <tr>
            <td class="tdSeguridad" colspan="2">
                Administración de Usuarios
            </td>
        </tr>
        <tr>
            <td align="right" class="tdForm" style="width: 20%">
                &nbsp;Apellido</td>
            <td class="tdForm" style="width: 80%">
                <asp:TextBox ID="txtUsuario" runat="server" CssClass="cuadrotxt100"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" class="tdForm" style="width: 20%">
                e-mail</td>
            <td class="tdForm" style="width: 80%">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="cuadrotxt100"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" class="tdForm" style="width: 20%">
                Login</td>
            <td class="tdForm" style="width: 80%">
                <asp:TextBox ID="txtLogin" runat="server" CssClass="cuadrotxt100"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" class="tdForm" style="width: 20%">
                Estado</td>
            <td class="tdForm" style="width: 80%">
                <asp:DropDownList ID="cboEstado" runat="server" Width="110px">
                    <asp:ListItem Value="B">Baja</asp:ListItem>
                    <asp:ListItem Value="A">Alta</asp:ListItem>
                    <asp:ListItem Selected="True"> </asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="center" class="tdBotones" colspan="2">
                <asp:Button ID="btnBuscar" runat="server" OnClick="btnBuscar_Click" Text="Buscar"
                    Width="75px" />&nbsp;<asp:Button ID="btnNuevo" runat="server" OnClick="btnNuevo_Click"
                        Text="Nuevo" Width="75px" />&nbsp;<asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click"
                            Text="Cancelar" Width="75px" /></td>
        </tr>
        <tr align="center">
            <td colspan="2" style="width: 100%">
                <asp:GridView ID="gvUsuarios" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" DataKeyNames="Id_Usuario" GridLines="Vertical" OnPageIndexChanging="gvUsuarios_PageIndexChanging"
                    OnRowDataBound="gvUsuarios_RowDataBound" OnRowDeleting="gvUsuarios_RowDeleting"
                    OnSelectedIndexChanged="gvUsuarios_SelectedIndexChanged1" Width="100%">
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <Columns>
                        <asp:TemplateField HeaderText="C&#243;digo">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:Label ID="Id_usuario" runat="server" Text='<%# Bind("Id_Usuario") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Login">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:Label ID="Login" runat="server" Text='<%# Bind("Login") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Apellido">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:Label ID="Apellido" runat="server" Text='<%# Bind("Apellido") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nombres">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:Label ID="Nombres" runat="server" Text='<%# Bind("Nombres") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Fecha de baja">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:Label ID="lblFechaBaja" runat="server" Text='<%# Bind("Fecha_Hasta")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Select"
                                    Text="Seleccionar"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False">
                            <HeaderStyle ForeColor="White" />
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                    OnClientClick="return confirm('Seguro que desea eliminar este registro ?');"
                                    Text="Eliminar"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                        ForeColor="White" />
                    <AlternatingRowStyle BackColor="Gainsboro" />
                </asp:GridView>
            </td>
        </tr>
    </table>
         
    <br />
<BR /><BR />
</asp:Content>
